<%--
  Created by IntelliJ IDEA.
  User: ZZZLGB
  Date: 2020/10/13
  Time: 17:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--导入easyui核心的css--%>
<link rel="stylesheet" href="easyui/themes/default/easyui.css">
<%--导入easyui图标及css--%>
<link rel="stylesheet" href="easyui/themes/icon.css">
<%--导入基本默认css样式--%>
<link rel="stylesheet" href="easyui/themes/demo.css">
<%--导入jq依赖的js文件--%>
<script type="text/javascript" src="easyui/jquery.min.js"></script>
<%--导入easyui核心js--%>
<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
<html>
<head>
    <title>Title</title>
    <base href="<%=request.getContextPath()+"/"%>">
    <script type="text/javascript">
        $(function () {
            $('#tt').tree({
                onClick: function(node){
                    //node:当前点击的节点对象  node.text点击节点文本值
                    //判断当前节点是否有对应的url
                    if(node.url==""|| node.url==null){
                        return;
                    }

                    //判断当前选项卡是否存在
                    var  flag= $('#tab').tabs('exists',node.text);
                    if(flag){
                        //直接选中指定的选项卡
                        $('#tab').tabs('select',node.text);
                    }else{
                        //新建选项卡面板
                        $('#tab').tabs('add',{
                            title:node.text,
                           content:'<iframe src="'+node.url+'" width="100%" height="100%"></iframe>',
                          // href:"stu.jap",
                            closable:true
                        });
                    }
                }
            });
        })
    </script>

</head>
<body class="easyui-layout">
<div data-options="region:'north',split:false" style="height:100px;
           background-repeat: no-repeat;background-position: center;background-color: RGB(32,71,136)">
   <div style="margin-top: 30px;margin-left: 80px">
       <span style="font-size: 35px;font-family: 楷体;color: #95B8E7;font-style: italic">Ting 域后台系统</span>
   </div>
    <div style="float: right">
        <span style="font-size: 20px;font-family: 楷体;color: #95B8E7;">欢迎${sessionScope.admin.aname}
       <a href="admin/adminLoginOut" style="font-size: 20px;font-family: 楷体;color: #95B8E7;text-decoration: none"> 退出</a></span>
    </div>

</div>

<div data-options="region:'west',title:'West',split:true" style="width:200px;">

    <div class="easyui-accordion" data-options="fit:true,border:false">
        <div title="菜单">
            <ul id="tt" class="easyui-tree" url="menu/findMoreMenu">

            </ul>
        </div>
        <div title="备忘录">
            <h3>[1]XXX事情谈判</h3>
            <h3>[2]XXX事情谈判</h3>
            <h3>[3]XXX事情谈判</h3>
        </div>
        <div title="日历">
            <div class="easyui-calendar" style="width:190px;height:250px;"></div>
        </div>
    </div>

</div>
<div data-options="region:'center'" style="background:#eee;">
    <div id="tab" class="easyui-tabs" data-options="fit:true">
        <div title="默认页" style="background-image: url('imgs/bbj.jpg');
                    background-repeat: no-repeat;
                    background-position: center">
        </div>
    </div>
</div>
</body>
</html>
